package com.xiangmo.travel.Entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("team")
public class Team implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId("id")
    private Long id;
    private Long userId;
    private Long attractionsId;
    private String title;
    private String description;
    private Integer maxMembers;
    @Builder.Default
    private Date createdAt = new Date();
    private Date endTime;
    private Integer status;
    private String endPoint;
    private String startingPoint;
}
